﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CasaBella.Entities;
using CasaBella.Repository;
using Microsoft.Practices.Unity;

namespace CasaBella.BL
{
    public class ProdColchonesBL:IProdColchonesBL
    {
        [Dependency]
        public IProdColchonesRepository proColchDAO { get; set; }

        public List<P_COLCHONES> GetAllFromProdColchones()
        {
            return proColchDAO.GetAllFromProdColchones();
        }

        public List<P_COLCHONES> GetAllFromProdColchonesByCriterio(string criterio)
        {
            return proColchDAO.GetAllFromProdColchonesByCriterio(criterio);
        }

        public P_COLCHONES GetAllFromProdColchonesByIdColchones(int idColchones)
        {
            return proColchDAO.GetAllFromProdColchonesByIdColchones(idColchones);
        }

        public void AddProdColchones(P_COLCHONES prodColchones)
        {
            proColchDAO.AddProdColchones(prodColchones);
         
        }

        public void UpdateProdColchones(P_COLCHONES prodColchones)
        {
            proColchDAO.UpdateProdColchones(prodColchones);
        }
    }
}
